﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web.Http;
using System.Xml.Linq;


namespace Controllers
{
    public class PlayersController : ApiController
    {
        //
        // GET: /Players/

        public void Index()
        {
           // return null;
        }

        [HttpGet]
        public Player Get(string ID)
        {
            PlayerAPI api = new PlayerAPI();
            Player Result = api.GetByQuery(ID);

            return Result;
        }

    }
}
